# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-socks5line
_pkgname=socks5line
pkgver=0.0.4
pkgrel=7
pkgdesc='Helper for socks5-unaware clients.'
arch=('any')
url='https://pypi.org/project/socks5line/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('32d79f1bbafe1917b51de2eb13f56b4c0d4cca358c2f0be4a9485e9d4f4a844455f90c81515c38ae9c688aab70cd35ac477e58805386c6fe85a3a671071d7281')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

